<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>POP3::Connect()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
a {	color: blue; text-decoration: none }
a:hover { text-decoration: underline }
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
<hr color="white">
POP3 :: <i>mixed</i> <b>connect</b> ( <i>string</i> address, <i>string</i> username, <i>string</i> password [, <i>integer</i> port [, <i>string</i> ssl [, <i>integer</i> timeout [, <i>resource</i> context ]]]] )
<hr>
Return RESOURCE connection if has been successfully connected, boolean FALSE if not.

Default values are:
<i>integer</i> port: 110
<i>integer</i> timeout: 30

<i>string</i> ssl possible values are: tls, ssl, sslv2 or sslv3

<i>Notice</i>: <i>string</i> address can have hostname or IPv4 value.
The standard port values are: 110 - default, and 995 - SSL (secure).

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
// connect to 'pop.hostname.tld'
$c = POP3::Connect('pop.hostname.tld', 'username', 'password');

// print result
if ($c) echo 'Successfully connected !';
else print_r($_RESULT); // &lt;- for debugging
</code></pre>
</td></tr>
</table>

<hr color="white">

See Also: <a href="disconnect.html">POP3::Disconnect()</a>

[ <a href="mail&#116;&#111;:contact&#064;xpertmailer.com?subject=Comment POP3 Connect">Comments</a> ]

Last update: Tuesday, June 26, 2007

<hr>
</pre>

</body>
</html>